package com.zhengaz.gateway.service;


import com.zhengaz.common.core.entity.R;
import com.zhengaz.common.core.exception.CaptchaException;

import java.io.IOException;

/**
 * 验证码处理
 *
 * @author zhengzg
 * @create 2023-09-07 16:14
 */
public interface ValidateCodeService {
    /**
     * 生成验证码
     */
    public R<Object> createCaptcha() throws IOException, CaptchaException;

    /**
     * 校验验证码
     */
    public void checkCaptcha(String key, String value) throws CaptchaException;
}
